package week5;

/**
 * Created by dell on 2017/3/25.
 */
public class TryCatchFinallyDemo {
    public static void main(String[] args) {
        System.out.println(text(true));
    }
    static int text(boolean flag) {
        try {
            if(flag) {
                return 1;
            }
        }finally {
            System.out.println("finally...");
        }
        return 0;
    }
}
